/**
 * Author:  Lgh.
 * Date:    2018/8/24.
 * File：   请求api.
 */
import post from './post'
function Login (param) { // 登录
  return post('/passport/login', param)
}
function test () {
  return post('/passport/test')
}
function Register (param) { // 注册
  return post('/passport/register', param)
}
function sms (param) { // 验证码
  return post('/passport/sms', param)
}
function forget (param) { // 忘记密码
  return post('/passport/forget', param)
}
function NoticeList (param) { // 公告列表
  return post('/shop.tool.notice/index', param)
}
function noticeDel (id) { // 删除公告
  return post('/shop.tool.notice/notice_del', {id: id})
}
function orderManage (param) { // 订单列表
  return post('/shop.order.order/order_manage', param)
}
function logout () { // 退出登录
  return post('/passport/logout')
}
function GoodsList (param) { // 商品列表
  return post('/shop.good.good/index', param)
}
function PutOrPullGood (param) { // 商品上架下架
  return post('/shop.good.good/put_or_pull_good', param)
}
function UserList (param) { // 用户列表
  return post('/shop.user.users/index', param)
}
function getUserInfo (param) { // 用户详情
  return post('/shop.user.users/edit_users', param)
}
function orderList (param) { // 订单列表
  return post('/shop.order.order/cert_order_list', param)
}
function orderInfo (id) { // 订单号
  return post('/shop.order.order/order_info', {id: id})
}
function EditPwd (param) { // 编辑密码
  return post('/shop.setting/password', param)
}
function EditMember (param) { // 编辑商家
  return post('/shop.setting/shop', param)
}
function DistributeSet (param) { // 分销设置
  return post('/shop.setting/distribute_set', param)
}
function ManagerList () { // 管理员列表
  return post('/shop.setting/admin')
}
function ManagerEdit (param) { // 管理员编辑
  return post('/shop.setting/edit_admin', param)
}
function ManagerAdd (param) { // 新增管理员
  return post('/shop.setting/add_admin', param)
}
function MiniAppList () { // 小程序列表
  return post('/shop.applet/index')
}
function fetch (id) { // 自提核销
  return post('/shop.order.order/fetch_confirm', {order_id: id})
}
function cancelOrder (param) { // 取消订单
  return post('/shop.order.order/cancel_order', param)
}
function setSend (id) { // 发货设置
  return post('/shop.order.order/set_send', {id: id})
}
function sendSave (param) { // 发货保存
  return post('/shop.order.order/set_send_save', param)
}
function noticSave (param) { // 公告保存
  return post('/shop.tool.notice/save', param)
}
function getTemList (param) { // 消息模板列表
  return post('/shop.applet/setting', param)
}
function SaveTemSet (param) { // 保存模板消息
  return post('/shop.applet/setTemplate', param)
}
function BargainList (param) { // 砍价活动列表
  return post('/shop.tool.activity_bargain/bargain', param)
}
function BargainDeal (param) { // 开启 关闭砍价
  return post('/shop.tool.activity_bargain/bargain_deal', param)
}
function BargainEdit (param) { // 活动编辑
  return post('/shop.tool.activity_bargain/bargain_edit', param)
}
function BargainSave (param) { // 砍价保存
  return post('/shop.tool.activity_bargain/bargain_save', param)
}
function GroupList (param) { // 拼团列表
  return post('/shop.tool.activity_group/group', param)
}
function GroupDeal (param) { // 开启 关闭拼团
  return post('/shop.tool.activity_group/group_deal', param)
}
function GroupEdit (param) { // 活动编辑
  return post('/shop.tool.activity_group/group_edit', param)
}
function SeckillList (param) { // 秒杀活动列表
  return post('/shop.tool.activity_seckill/seckill', param)
}
function SeckillDeal (param) { // 开启 关闭秒杀
  return post('/shop.tool.activity_seckill/seckill_deal', param)
}
function SeckillEdit (param) { // 活动编辑
  return post('/shop.tool.activity_seckill/seckill_edit', param)
}
function ExpInfo (param) { // 物流信息
  return post('/shop.tool.api/expressApi', param)
}
function GoodOperate (param) { // 商品操作
  return post('/shop.good.good/goods_add_edit', param)
}
function getAllCateList () { // 所有商品分类
  return post('/shop.good.good/get_all_cate_list')
}
function getSpecByCateId (cateId) { // 规格
  return post('/shop.good.spec/spec_get', {cat_id: cateId})
}
function specValueDel (param) { // 删除规格值
  return post('/shop.good.spec/spec_value_del', param)
}
function specValueAdd (param) { // 新增规格值
  return post('/shop.good.spec/spec_value_add', param)
}
function specAdd (param) { // 新增规格
  return post('/shop.good.spec/spec_add', param)
}
function goodsImgDel (param) { // 删除图片
  return post('/shop.good.good/goods_img_del', param)
}
export {
  Login,
  test,
  Register,
  sms,
  forget,
  NoticeList,
  noticeDel,
  orderManage,
  logout,
  GoodsList,
  PutOrPullGood,
  UserList,
  getUserInfo,
  orderList,
  orderInfo,
  EditPwd,
  EditMember,
  DistributeSet,
  ManagerList,
  ManagerEdit,
  ManagerAdd,
  MiniAppList,
  fetch,
  cancelOrder,
  sendSave,
  noticSave,
  getTemList,
  SaveTemSet,
  setSend,
  BargainList,
  BargainDeal,
  BargainEdit,
  BargainSave,
  GroupList,
  GroupDeal,
  GroupEdit,
  SeckillList,
  SeckillDeal,
  SeckillEdit,
  ExpInfo,
  GoodOperate,
  getAllCateList,
  getSpecByCateId,
  specValueDel,
  specValueAdd,
  specAdd,
  goodsImgDel
}
